
#include <CCStdC.h>
#include "IceLua_Proxy.h"

namespace IceLua
{
	::Ice::DispatchStatus LuaProxy::__dispatch( ::IceInternal::Incoming& in, const ::Ice::Current& current)
	{
		return Ice::DispatchOK;
	}

	LuaProxy* createFrom(Ice::ObjectPrx prx)
	{
		if (!prx) return NULL;

		LuaProxy* ret = new LuaProxy();

		if (ret) {
			ret->__copyFrom(prx);
		}
		
		return ret;
	}
	
	LuaProxy* LuaProxy::facetof(const std::string& facet)
	{
		Ice::ObjectPrx prx = this->ice_facet(facet);

		return createFrom(prx);
	}

	::Ice::AsyncResultPtr LuaProxy::invoke(std::string operation,std::vector<Ice::Byte>* params, Ice::Callback_Object_ice_invoke_Base* cb)
	{
		return begin_ice_invoke(operation,Ice::Normal,*params, (const ::Ice::Callback_Object_ice_invokePtr&)cb);
	}
}